#ifndef SUBJECT_H_
#define SUBJECT_H_

#include <string>
#include <iostream>
using namespace std;

class Subject{
protected:
	string id;
	string sname;
	string stype;
	short credit;
	string presub;

public:
	Subject();
	Subject(string i_id, string i_sname, string i_stype, short i_credit, string i_presub);
	string getId();
	string getName();
	string getType();
	short getCredit();
	string getPresub();

	void Show();
	void setId(string n_id);
	void setName(string n_sname);
	void setType(string n_stype);
	void setCredit(short n_credit);
	void setPresub(string n_presub);
    void Search_by_Presub(string n_key, string n_file, int &k);
};

#endif

